package businesslogic.StudentBl;

import java.util.ArrayList;
import java.util.Iterator;

import po.StudentPO;
import businesslogic.YXTeacherBl.YXTeacher_Student;
public class StudentList_YXTeacher implements YXTeacher_Student{

	public ArrayList<StudentPO> getList(String partment) {
		Student student=new Student();
		ArrayList<StudentPO> arr=(ArrayList<StudentPO>)(student.getList().result);
		ArrayList<StudentPO> result=new ArrayList<StudentPO>();
		Iterator it=arr.iterator();
		while(it.hasNext()){
			StudentPO po=(StudentPO)it.next();
			if(po.getDepartment().equals(partment)){
				result.add(po);
			}
		}
		return result;
	}

}
